/*
8 + 3i
 */

#include <iostream>
using namespace std;
//struct Complex{
class Complex{
	private:
		double r ; //实部
		double i; //虚部
	public:
		void init(double rr, double ii){
			r = rr;
			i = ii;
		}
		double real(){
			return r;
		}
		double image(){
			return i;
		}
		void set_real(double data){
			r = data;
		}
		void set_image(double data){
			i = data;
		}
};
int main(void){
	Complex a;
	a.init(2,3);
	//a.r = 8;
	a.set_real(8);
	cout << a.real() << " + " << a.image() << "i" << endl;
	return 0;
}
